package com.juice.controller;

import com.juice.utils.Logs;
import com.juice.utils.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/4/14 11:59 下午
 */

@RestController
@RequestMapping
public class TestController {

    //private static final Logger Log = LoggerFactory.getLogger(BookController.class);

    @RequestMapping("/test")
    public String test() {
        Logs.common.info(Pair.of("message", "yes"));
        Logs.common.error(Pair.of("message", "v19"));
        Logs.common.error(Pair.of("message", "v19"));
//        Log.info("info---");
//        Log.warn("warn---");
//        Log.error("errpr---");
        //System.out.println(RequestContext);
        return "test ok";
    }
}
